#ifndef MODULEA_H
#define MODULEA_H

#define MAX_STUDENTS 100
#define MAX_COURSES 100
#define MAX_NAME_LENGTH 50
#define MAX_COURSE_NAME_LENGTH 100

#include "../ModuleB/moduleb.h"




typedef struct {
    int id;
    char name[MAX_NAME_LENGTH];
    Course seletctedCourse[MAX_COURSES];
    int totalCredits;
    int courseNum;
}Student;

extern Student students[MAX_STUDENTS];
extern Course courses[MAX_COURSES];
extern int studentCount;
extern int courseCount;
extern int coursePeople[MAX_COURSES]; //记录coursePeople[i] 记录选择id为i的课程的人数。

void updateCredits(Student* stu);
void addStudent();
void modifyStudent();
void deleteStudent();
void viewStudentDetails();

#endif  // MODULEA_H